package com.qian.api.ddj.service;

import com.qian.api.ddj.model.CountModel;
import com.qian.api.ddj.model.CountResultModel;
import com.qian.api.ddj.model.Order;
import com.qian.api.ddj.model.OrderQueryModel;
import com.yaowk.api.common.IBaseService;
import com.yaowk.api.common.PageReq;
import com.yaowk.api.common.PageResp;

import java.math.BigDecimal;
import java.util.List;

public interface IOrderService extends IBaseService<Order, Integer> {

    void orderFinish(Order order);

    String notifyToUser(Order order);

    PageResp<Order> findAll(OrderQueryModel model, PageReq pageReq);

    void settlement(Integer userId);

    List<CountResultModel> count(CountModel countModel);

    Order findByOrderNo(String orderNo);

    Order findByCode(String code);

    BigDecimal countLockMoneyByUserId(Integer userId);

}
